package com.sufen.seckill.study.FaceCoding;

import java.util.ArrayList;
import java.util.List;

public class OutOfMemoryHelp {
    public static void main(String[] args) {
        List<Object> oomObjects = new ArrayList<>();
        while (true){
            try {
                Thread.sleep(1);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            oomObjects.add(new Object());
        }
    }
}
